package com.hhxy.model.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
 * @author ghp
 * @date 2023/4/29
 * @title
 * @description 用于接收用户注册时的数据
 */
@ApiModel(description = "用户注册信息传输类")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserRegisterDto {
    /**
     * 账号
     */
    @ApiModelProperty(value = "账号", required = true)
    @NotBlank
    private String userName;

    /**
     * 密码
     */
    @ApiModelProperty(value = "密码", required = true)
    @NotBlank
    private String password;

    /**
     * 昵称
     */
    @ApiModelProperty(value = "昵称", required = true)
    @NotBlank
    private String nickName;

    /**
     * 邮箱
     */
    @ApiModelProperty(value = "邮箱", required = true)
    @NotBlank
    private String email;


}
